package top.api.domain.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 *
 * @TableName student
 */
@Data
public class StudentEditDto implements Serializable {
    @NotNull(message = "学生ID不可为空")
    private Integer id;
    /**
     *
     */
    @NotBlank(message = "学生名称不可空")
    private String name;

    /**
     *
     */
    private String gender;

    /**
     *
     */
    private Integer age;

    /**
     *
     */
    private Integer classno;

    /**
     *
     */
    private String phone;

    /**
     *
     */
    private String email;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
